package com.ad.payload.enums;

import lombok.Getter;

/**
 * @author:dxgong
 * @日期 2021/3/10 20:48
 * @注释
 */
@Getter
public enum ResultCode {


    SUCCESS(200, "操作成功!"),

    FAILED(1000, "操作失败!"),

    VALIDATE_FAILED(1001, "参数校验失败!"),

    LOGIN_FAILED(1002, "未登录!"),

    ERROR(1003, "系统未知错误!");


    private int code;
    private String msg;

    ResultCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

}
